/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Communication;

import java.io.Serializable;

/**
 *
 * @author ojgr
 */
public class AddressMachine implements Serializable {

    private String IP;
    private int port;
    private String nick;

    public AddressMachine(String elNombre, String laIP, int elPuerto) {
        this.nick = elNombre;
        this.IP = laIP;
        this.port = elPuerto;
    }

    public String getConexion() {
        return this.nick + " " + this.IP + " " + this.port;
    }

    public String getNick() {
        return this.nick;
    }

    public String getIp() {
        return IP;
    }

    public void setIp(String laIP) {
        this.IP = laIP;
    }

    public void setNick(String nameMachine) {
        this.nick = nameMachine;
    }

    public int getPort() {
        return port;
    }

    public void setPort(int elPort) {
        this.port = elPort;
    }
}
